#include "Renderer_PCH.h"
#include "ClearColorEvent.h"

/*--------------------------------------------------------------------------*/

ClearColorEvent::ClearColorEvent(float r, float g, float b, float a, char stencil, float depth) :
	m_red(r),
	m_green(g),
	m_blue(b),
	m_alpha(a),
	m_stencil(stencil),
	m_depth(depth)
{

}

/*--------------------------------------------------------------------------*/

ClearColorEvent::~ClearColorEvent()
{

}

/*--------------------------------------------------------------------------*/

bool ClearColorEvent::CallEvent()
{
	glClearColor(m_red, m_green, m_blue, m_alpha);
	glClearStencil(m_stencil);
	glClearDepth(m_depth);

	return true;
}

/*--------------------------------------------------------------------------*/
